package cn.bgs.service.Impl;

import cn.bgs.mapper.SyzMapper;
import cn.bgs.service.SyzService;
import cn.bgs.vo.Operationvo;
import cn.bgs.vo.Pagevo;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SyzServiceImpl implements SyzService {
    @Autowired
    SyzMapper syzMapper;
    @Override
    public PageInfo<Operationvo> page1(Pagevo pagevo) {
       PageHelper.startPage(pagevo.getPageNum(),pagevo.getPageSize());
       List<Operationvo> operationvoList = syzMapper.selectQueryAll(pagevo.getUserName());
       PageInfo<Operationvo> c=new PageInfo<>(operationvoList);
       System.out.println("---:"+c);
       return c;
    }
}

